﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WdpaLoginServiceRef;

public partial class UserRegistrationConfirm : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string ConfirmEmail = Request.QueryString["Email"];

        WdpaLoginService WdpaLoginService1 = new WdpaLoginService();

        bool ActivateSuccess = WdpaLoginService1.ActivateUser(ConfirmEmail);
        
        if (ActivateSuccess)
        {
            ConfirmMessageBox.InnerHtml = "<p>Your account has been activated</p> <p>Please log in with your email address and password in the top right corner</p>";
        }
        else
        {
            ConfirmMessageBox.InnerHtml = "You need to register";
        }
    }
}

